package com.prs.crm.action.assets;

import org.apache.struts2.convention.annotation.Action;
import org.courser.struts.BaseAction;
import org.courser.ui.PaginationSupport;
import org.hibernate.criterion.DetachedCriteria;

import com.prs.crm.domain.assets.AssetsLiuXiang;
import com.prs.crm.service.assets.AssetsLiuXiangService;

public class AssetsLiuXiangAction extends BaseAction{

	private PaginationSupport pagination;
	private AssetsLiuXiang assetsLiuXiang;
	private AssetsLiuXiangService assetsLiuXiangService;
	public PaginationSupport getPagination() {
		return pagination;
	}
	public void setPagination(PaginationSupport pagination) {
		this.pagination = pagination;
	}
	public AssetsLiuXiang getAssetsLiuXiang() {
		return assetsLiuXiang;
	}
	public void setAssetsLiuXiang(AssetsLiuXiang assetsLiuXiang) {
		this.assetsLiuXiang = assetsLiuXiang;
	}
	public AssetsLiuXiangService getAssetsLiuXiangService() {
		return assetsLiuXiangService;
	}
	public void setAssetsLiuXiangService(AssetsLiuXiangService assetsLiuXiangService) {
		this.assetsLiuXiangService = assetsLiuXiangService;
	}
	@Action("listAssetsLiuXiangs")
	public String listAssetsLiuXiangs(){
		DetachedCriteria criteria=this.getPaginationHelper().createQuery(AssetsLiuXiang.class);
		pagination=this.getPaginationHelper().prepare(pagination);
		this.setPagination(this.getAssetsLiuXiangService().listByPage(criteria, pagination));
		return SUCCESS;
	}
}
